package com.howard.modules.user.service.impl;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.howard.modules.base.dao.AppBaseDao;
import com.howard.modules.base.service.impl.AppBaseServiceImpl;
import com.howard.modules.user.User;
import com.howard.modules.user.dao.UserDao;
import com.howard.modules.user.service.UserService;

@Service
public class UserServiceImpl extends AppBaseServiceImpl<User> implements UserService {

	@Resource
	private UserDao userDao;

	@Override
	public AppBaseDao<User> getDao() {
		return userDao;
	}

	@Override
	public User queryUser(User user) {
		return userDao.queryUser(user);
	}

	@Override
	public User queryUserByName(String name) {
		return userDao.queryUserByName(name);
	}
}
